﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace Models
{
    public class Film
    {

        public Film() { }
        
        public int Id { get; set; }

        public string Titre { get; set; }

        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        [Display(Name = "Date de publication ")]
        public DateTime DatePublication { get; set; }

        [DisplayFormat(ApplyFormatInEditMode = false, DataFormatString = "{0:C0}")]
        public int Prix { get; set; }

        public string Genre { get; set; }

    }
}
